package com.wtwd.device.exception;

import com.wtwd.device.constant.RespCode;

/**
 * @author ljiong
 * @date 2021/01/13
 * @description
 */
public class BaseException extends RuntimeException {
    private RespCode respCode;
    private String msg;
    private Integer code;

    public BaseException(RespCode respCode) {
        this.respCode = respCode;
    }

    public BaseException(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }

    public BaseException(String msg) {
        this.msg = msg;
    }

    public RespCode getRespCode() {
        return respCode;
    }

    public void setRespCode(RespCode respCode) {
        this.respCode = respCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
